/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tofc.chart;

import tofc.BaseOFC;
import tofc.style.BaseAnimateStyle;
import tofc.value.PieCol;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author p476733
 */
public class Pie extends BaseOFC {

    private List<String> colours;
    private Number alpha;
    private List values;
    private Number radius;
    private Number startAngle;
    private String tip;
    private List<BaseAnimateStyle> animate;
    private String type;
    private boolean NoLabels;
    private String labelColour;
    private String onClick;

    public Pie() {
        this.type = "pie";
        this.values = new ArrayList();
        this.colours = new ArrayList();
        this.animate = new ArrayList();
    }

    /**
     *
     * @return noLabels
     */
    public boolean isNoLabels() {
        return NoLabels;
    }

    /**
     *
     * @param NoLabels
     */
    public void setNoLabels(boolean NoLabels) {
        this.NoLabels = NoLabels;
    }

    /**
     *
     * @return alpha
     */
    public Number getAlpha() {
        return alpha;
    }

    /**
     *
     * @param alpha
     */
    public void setAlpha(Number alpha) {
        this.alpha = alpha;
    }

    /**
     *
     * @return animate
     */
    public List getAnimate() {
        return animate;
    }

    /**
     *
     * @param animate
     */
    public void setAnimate(List<BaseAnimateStyle> animate) {
        this.animate = animate;
    }

    /**
     * 
     * @param animate
     */
    public void addAnimate(BaseAnimateStyle animate) {
        this.animate.add(animate);
    }

    /**
     *
     * @return colours
     */
    public List<String> getColours() {
        return colours;
    }

    /**
     *
     * @param colours
     */
    public void setColours(List<String> colours) {
        this.colours = colours;
    }

    /**
     *
     * @return labelColour
     */
    public String getLabelColour() {
        return labelColour;
    }

    /**
     *
     * @param labelColour
     */
    public void setLabelColour(String labelColour) {
        this.labelColour = labelColour;
    }

    /**
     *
     * @return onClick
     */
    public String getOnClick() {
        return onClick;
    }

    /**
     *
     * @param onClick
     */
    public void setOnClick(String onClick) {
        this.onClick = onClick;
    }

    /**
     *
     * @return radius
     */
    public Number getRadius() {
        return radius;
    }

    /**
     *
     * @param radius
     */
    public void setRadius(Number radius) {
        this.radius = radius;
    }

    /**
     *
     * @return startAngle
     */
    public Number getStartAngle() {
        return startAngle;
    }

    /**
     *
     * @param startAngle
     */
    public void setStartAngle(Number startAngle) {
        this.startAngle = startAngle;
    }

    /**
     *
     * @return tip
     */
    public String getTip() {
        return tip;
    }

    /**
     *
     * @param tip
     */
    public void setTip(String tip) {
        this.tip = tip;
    }

    /**
     *
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     *
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     *
     * @return values
     */
    public List getValues() {
        return values;
    }

    /**
     *
     * @param values
     */
    public void setValues(Number... values) {
        this.values.clear();
        addValues(values);
    }

    /**
     *
     * @param values
     */
    public void setValues(PieCol... values) {
        this.values.clear();
        addValues(values);
    }

    /**
     *
     * @param position
     * @param values
     */
    public void setValue(int position, Number values) {
        this.values.add(position, values);
    }

    /**
     *
     * @param positon
     * @param values
     */
    public void setValue(int positon, PieCol values) {
        this.values.add(positon, values);
    }

    /**
     *
     * @param values
     */
    public void addValues(Number... values) {
        for (int i = 0; i < values.length; i++) {
            this.values.add(values[i]);
        }
    }

    /**
     * 
     * @param values
     */
    public void addValues(PieCol... values) {
        for (int i = 0; i < values.length; i++) {
            this.values.add(values[i]);
        }
    }
}
